package com.foruo.sc.upload.file.server.service;

import com.foruo.sc.upload.file.server.dao.UploadFileDao;
import com.foruo.sc.upload.file.server.entity.FileEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 日志服务层
 * @author GaoYuan
 * @date 2018/4/9 下午4:07
 */
@Service
public class UploadFileService {

    @Autowired
    UploadFileDao uploadFileDao;

    /**
     * 保存日志（日志入库）
     * @author GaoYuan
     * @date 2018/4/9 下午4:07
     */
    public void save(FileEntity fileEntity){
        uploadFileDao.save(fileEntity);
    }

    public void updateStatus(String url,String status){
        uploadFileDao.updateStatus(url,status);
    }
}
